if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[PayIn]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[PayIn]
GO

CREATE TABLE [dbo].[PayIn] (
	[PayInId] [int] IDENTITY (1, 1) NOT NULL ,
	[PayInDate] [datetime] NOT NULL ,
	[ShiftId] [int] NOT NULL ,
	[ScheduleDriverTaxiId] [int] NOT NULL ,
	[TaxiId] [int] NOT NULL ,
	[DriverId] [int] NOT NULL ,
	[Cash] [money] NULL ,
	[M7] [money] NULL ,
	[EftPos] [money] NULL ,
	[Expenses] [money] NULL ,
	[Comment] [varchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[PayInDue] [money] NULL ,
	[CarriedFwdPayIn] [money] NULL ,
	[Claims] [money] NULL 
) ON [PRIMARY]
GO

